package com.obas.model.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.TextualEnum;

/**
 * 
 * @author nathanleewei
 * 
 */
public enum AnalogyValueAttributeType implements TextualEnum, AttributeColumnType {

	//
	BATCHTIMESTAMP("批次时间戳", "BATCHTIMESTAMP", "DATE", 0), //	
	
	HOUR_OF_DAY("HOUR_OF_DAY", "HOUR_OF_DAY", "NUMBER", 0), //
	DAY_OF_WEEK("DAY_OF_WEEK", "DAY_OF_WEEK", "NUMBER", 0), //
	WEEK_OF_YEAR("WEEK_OF_YEAR", "WEEK_OF_YEAR", "NUMBER", 0), //
	MONTH_OF_YEAR("MONTH_OF_YEAR", "MONTH_OF_YEAR", "NUMBER", 0), //
	
	INDICATORTYPE_ID("KPI类型", "INDICATORTYPE_ID", "NUMBER", 0), //
	NETWORKSERVING_ID("网络服务", "NETWORKSERVING_ID", "NUMBER", 0), //
	
	SUMMATION("合计", "SUMMATION", "NUMBER", 0), //
	
	VALUE("KQI值", "VALUE", "NUMBER", 0), //
	RANK("得分", "RANK", "NUMBER", 0), //
	
	ACCUMULATIONS("累计次数", "ACCUMULATIONS", "NUMBER", 0); //

	private String text;
	// private String code;
	private String columnName;
	private String dataType;
	private int length;

	private AnalogyValueAttributeType(String text, String columnName, String dataType, int length) {
		this.text = text;
		// this.code = code;
		this.columnName = columnName;
		this.dataType = dataType;
		this.length = length;
	}

	public static AnalogyValueAttributeType get(String name) {
		return EnumUtil.get(AnalogyValueAttributeType.class, name);
	}

	public String getText() {
		return text;
	}

	public String getName() {
		return name();
	}

	/**
	 * @return the dataType
	 */
	public String getDataType() {
		return dataType;
	}

	/**
	 * @return the length
	 */
	public int getLength() {
		return length;
	}

	/**
	 * @return the columnName
	 */
	public String getColumnName() {
		return columnName;
	}

}
